package com.zh.common.service;


import com.zh.common.domain.RoleDO;

import java.util.List;
import java.util.Map;

/**
 * 角色
 * 
 * @author lds
 * @email 1992lcg@163.com
 * @date 2019-05-23 14:44:17
 */
public interface RoleService {
	
	RoleDO get(String roleId);
	
	List<RoleDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(RoleDO role);
	
	int update(RoleDO role);
	
	int remove(String roleId);
	
	int batchRemove(String[] roleIds);

	List<RoleDO> getRolesByUserName(String userName,int userType);
}
